<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta name="renderer" content="webkit">
<title></title>
<link rel="stylesheet" href="css/pintuer.css">
<link rel="stylesheet" href="css/admin.css">
<script src="js/jquery.js"></script>
<script src="js/pintuer.js"></script>
</head>
<script type="text/javascript">

function clearData1(){
	var filter = $("#filter").val();
	if(filter==""){
		alert("请输入...");
        return false;  // 返回false，a标签就会终止动作，不跳转
    }else{
    	post('1',filter);
    }
}
function clearData2(){
	var filter = $("#filter2").val();
	if(filter==""){
		alert("请输入...");
        return false;  // 返回false，a标签就会终止动作，不跳转
    }else{
    	post('2',filter);
    }
}
function post(type,date){
	var url = "order/orderresync";
	$.ajax({
	    type: "get",
	    url: url,
	    data: "adcode="+date+"&type="+type,
	    cache: false,
	    async : false,
	    dataType: "json",
	    success: function (data,textStatus){
	    	alert(textStatus);	 
	    	alert(data);
	    }
	 });
}
</script>
<body>
<div class="panel admin-panel">
  <div class="panel-head"><strong><span class="icon-key"></span> 删除任务单&nbsp;&nbsp;<font color="red">操作之前，请认真核对任务单编号！</font></strong></div>
  <div class="body-content">
      <br>
      <div class="form-group">
        <div class="label">
          <input type="text" class="input w50" id="filter" name="filter" size="100" placeholder="请输入任务单编号" />          
	
          &nbsp;&nbsp;&nbsp;&nbsp;<button class="button bg-main icon-check-square-o" type="button" onclick="clearData1();"> 删除</button>   
        </div>
      </div>
  </div>
</div>
<br>
<div class="panel admin-panel">
  <div class="panel-head"><strong><span class="icon-key"></span> 手工同步任务单&nbsp;&nbsp;<font color="blue">如果已经过了排期时间，则进行以下操作。 如果未过排期时间，不用操作</font></strong></div>
  <div class="body-content">
      <br>
      <div class="form-group">
        <div class="label">
          <input type="text" class="input w50" id="filter2" name="filter2" size="100" placeholder="请输入任务单编号" />          
	
          &nbsp;&nbsp;&nbsp;&nbsp;<button class="button bg-main icon-check-square-o" type="button" onclick="clearData2();"> 同步</button>   
        </div>
      </div>
  </div>
</div>
</body>
</html>